// _.reject(collection, [predicate=_.identity])
// The opposite of _.filter; 把满足条件的元素排除掉, 返回剩下的元素组成的新数组
var _ = require('lodash')
var users = [
  { 'user': 'barney', 'age': 36, 'active': false },
  { 'user': 'fred',   'age': 40, 'active': true }
];
_.reject(users, function(o) { return !o.active; });
// => objects for ['fred']

console.log(_.reject(users, ['active', false]))

console.log('sample() random num: ',_.sample([1,2,3,4,5,6,7,8,9,10])) // 随机数, 感觉不太对,难道我赶上了小概率事件?

console.log(_.shuffle([1, 2, 3, 4])) // 啥意思?

console.log('size() ',_.size({a:'', b:0, c:false})) // 仍然是3, 如果要过滤空值的value, 需要先_.values再_.compact

